package exception;

import enums.ExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 自定义异常
 */

public class MyException extends RuntimeException{
    private ExceptionEnum exceptionEnum;

    public MyException(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }

    public MyException() {
    }

    public ExceptionEnum getExceptionEnum() {
        return exceptionEnum;
    }
}
